import Mock from 'mockjs'

export const lineData = () => {
	let list = [];
	for (var i = 0; i < 7; i++) {
		list.push({
			"苹果": Mock.Random.float(100, 8000, 0, 0),
			"小米": Mock.Random.float(100, 8000, 0, 0),
			"华为": Mock.Random.float(100, 8000, 0, 0),
			"魅族": Mock.Random.float(100, 8000, 0, 0),
			"荣耀": Mock.Random.float(100, 8000, 0, 0),
			"三星": Mock.Random.float(100, 8000, 0, 0)
		});
	}
	return {
		code: 2000,
		lines: {
			date: ['20191001', '20191002', '20191003', '20191004', '20191005', '20191006', '20191007'],
			list
		}
	}
}